﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.adobe.net {
    import flash.utils.*;

    public class URIEncodingBitmap extends ByteArray {

        public function URIEncodingBitmap(_arg1:String):void{
            var _local2:int;
            var _local4:int;
            var _local5:int;
            super();
            var _local3:ByteArray = new ByteArray();
            _local2 = 0;
            while (_local2 < 16) {
                this.writeByte(0);
                _local2++;
            };
            _local3.writeUTFBytes(_arg1);
            _local3.position = 0;
            while (_local3.bytesAvailable) {
                _local4 = _local3.readByte();
                if (_local4 > 127){
                } else {
                    this.position = (_local4 >> 3);
                    _local5 = this.readByte();
                    _local5 = (_local5 | (1 << (_local4 & 7)));
                    this.position = (_local4 >> 3);
                    this.writeByte(_local5);
                };
            };
        }
        public function ShouldEscape(_arg1:String):int{
            var _local3:int;
            var _local4:int;
            var _local2:ByteArray = new ByteArray();
            _local2.writeUTFBytes(_arg1);
            _local2.position = 0;
            _local3 = _local2.readByte();
            if ((_local3 & 128)){
                return (0);
            };
            if ((((_local3 < 31)) || ((_local3 == 127)))){
                return (_local3);
            };
            this.position = (_local3 >> 3);
            _local4 = this.readByte();
            if ((_local4 & (1 << (_local3 & 7)))){
                return (_local3);
            };
            return (0);
        }

    }
}//package com.adobe.net 
